
import time
import schedule
import os
from datetime import datetime





def job():
    os.system(r"python D:\code\codegit\Project\Data_Covid19\run.py")
    print("running time", datetime.now())
    
schedule.every().day.at("23:59:30").do(job)
# schedule.every(1).minutes.do(job)
while True:
    schedule.run_pending() # 运行所有可以运行的任务
    time.sleep(1)